class Result {
  constructor(data, message, code) {
    this.data = data;
    this.message = message;
    this.code = code;
  }

  static success(data, message) {
    return new Result(data, message, 200);
  }

  static error(data, message, code) {
    return new Result(data, message, code);
  }
}

export default Result;
